import request from "@/utils/request"
import type { Environment } from "./type"

export const getEnvironmentList = () => {
    return request.get("/code/environment/list")
}

export const createEnvironment = (data: Environment) => {
    return request.post("/code/environment/create", data)
}

export const getEnvironmentInfoById = (id: string) => {
    return request.get("/code/environment/info", {
        params: {
            "id": id
        }
    })
}